﻿<Window x:Class="ResourceTranslator.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Window1" Height="470" Width="833"
        xmlns:mygrid="clr-namespace:ResourceTranslator"
        >
    <ScrollViewer>
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="40*" />
                <ColumnDefinition MinWidth="150" MaxWidth="250" />
                <ColumnDefinition Width="40*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="60" />
                <RowDefinition Height="*" />
                <RowDefinition Height="40" />
            </Grid.RowDefinitions>
            <StackPanel Grid.ColumnSpan="3" >
                <StackPanel Orientation="Horizontal" Height="25" Margin="3">
                    <TextBox Name="txtResxFile" Width="300"/>
                    <Button Content="Browse Resx File" x:Name="buttonBrowse" Click="buttonBrowse_Click"/>
                </StackPanel>
                <StackPanel Width="300" HorizontalAlignment="Left" Margin="3">
                    <ComboBox Name="inputLanguagesComboBox" HorizontalAlignment="Center" Width="100" Margin="3">
                        <ComboBoxItem Tag="" IsSelected="True">Auto Detect</ComboBoxItem>
                        <ComboBoxItem Tag="en" >English</ComboBoxItem>
                        <ComboBoxItem Tag="de" >German</ComboBoxItem>
                        <ComboBoxItem Tag="fr">French</ComboBoxItem>
                        <ComboBoxItem Tag="hi">Hindi</ComboBoxItem>
                    </ComboBox>
                </StackPanel>
            </StackPanel>

            <mygrid:ResourceViewer Background="AliceBlue" x:Name="originalResourcesViewer" Grid.Row="1" />

            <GridSplitter Grid.Row="1"  Width="2" Background="AliceBlue" HorizontalContentAlignment="Left"/>

            <StackPanel Grid.Column="1" Grid.Row="1" Margin="4" VerticalAlignment="Center">
                <ComboBox Name="languagesComboBox" HorizontalAlignment="Center" Width="100">
                    <ComboBoxItem Tag="de" IsSelected="True">German</ComboBoxItem>
                    <ComboBoxItem Tag="fr">French</ComboBoxItem>
                    <ComboBoxItem Tag="hi">Hindi</ComboBoxItem>
                    <ComboBoxItem Tag="en">English</ComboBoxItem>
                </ComboBox>
                <Button IsEnabled="False" Content="Translate" Margin="0,50,0,0" HorizontalAlignment="Center" Width="100" Name="buttonTranslate" Click="buttonTranslate_Click"/>
                <ProgressBar Height="10" Margin="0,10,0,0" Visibility="Hidden" Name="translationProgressBar" IsIndeterminate="True" />
            </StackPanel>

            <GridSplitter HorizontalAlignment="Left" Width="2" Background="AliceBlue" Grid.Column="2" Grid.Row="1" />

            <mygrid:ResourceViewer Background="AliceBlue" x:Name="translatedResourcesViewer" Grid.Column="2" Grid.Row="1"/>

            <Button x:Name="saveButton" Click="saveButton_Click" IsEnabled="False" Content="Save" VerticalAlignment="Top" HorizontalAlignment="Center" Grid.Column="2" Grid.Row="2"/>
            <Button Click="createSatelliteAsmButton_Click" Grid.Column="1" Grid.Row="2" Margin="2,6,6,11" Name="createSatelliteAsmButton" Content="Create Satellite Assembly" Visibility="Visible" />
        </Grid>
    </ScrollViewer>
</Window>
